<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>영화 예약 시스템</title>
	<script language='JAVASCRIPT'>
	function create_account(){
	// var url = "sign_up.jsp"; 
		 //window.open(url,"opner",'width=300,height=400');
		 location.href='sign_up.jsp';
	}
	</script>
</head>
<body>
<%
    String memberId = (String)session.getAttribute("ID");
    boolean login = memberId == null ? false : true;
    
    if(login){
    	out.print("<script>");
    	out.print("location.href='custom/mainframe.jsp';");
    	out.print("</script>");
    }
%>
<CENTER><h1>영화 예약 시스템</h1>
<form action="sign_check.jsp" method="post">
ID : <input type="text" name = "id">
Password  : <input type="password" name="password">
<p>
<input type="submit" name="sign_in" value="로그인">
<input type="button" name="sign_up" value="회원가입" onclick='create_account()'>
</form>
</CENTER>



</body>
</html>